x86 ACPI sleep: Fix a bug when ACPI registers in System_Memory
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 19 Mar 2008 10:33:13 +0000 (10:33 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 19 Mar 2008 10:33:13 +0000 (10:33 +0000)
commitd138d431e185a0e65dd63fc41b80b23cbf1cdf88
tree609a4c51bf37513c06875b7ed6735b2ff2f5f5f6
parentfd4c279fb111f3be750f36b63851f369c4c82eee
x86 ACPI sleep: Fix a bug when ACPI registers in System_Memory

Some ACPI registers may be in System_Memory but not System_IO space,
For these machines S3 fails since current Xen use I/O instructions (e.g.
inb(), outb(), etc.) to access ACPI registers. The patch attached fix
the bug by adding GAS (generic address structure) support ported from
Linux, which should also benefit later ACPI activity within Xen.

Signed-off-by: Huacai Chen <huacai.chen@intel.com>
xen/arch/x86/acpi/boot.c
xen/arch/x86/acpi/power.c
xen/drivers/acpi/Makefile
xen/drivers/acpi/hwregs.c [new file with mode: 0644]
xen/drivers/acpi/osl.c [new file with mode: 0644]
xen/include/asm-x86/acpi.h